<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" href="/static/build/layui.css" media="all">
<%@include file="/common/common.jspf"%>
<script type="text/javascript" src="${ctx}/js/hr/record_add.js"></script>
<style type="text/css">
.col-sm-3 {
	width: 15%;
	float: left;
}

.col-sm-9 {
	width: 85%;
	float: left;
}

label[class^="btn btn-default"] {
	margin-top: -4px;
}
</style>
</head>
<body>
	<div class="l_err" style="width: 100%; margin-top: 2px;"></div>
	<form id="form" name="form" class="form-horizontal" method="post"
		action="${ctx}/hrstaff/record_addEntity.shtml">
		<section class="panel panel-default">
		<input type="hidden" class="form-control "  name="staffFormMap.id" value="${staff.id}"  readonly>
		<input type="hidden" class="form-control "  name="staffFormMap.state" value="3"  readonly>
		<input type="hidden" class="form-control "  name="recordFormMap.state" value="1">
		<div class="panel-body">
			<div class="line line-dashed line-lg pull-in"></div>
			<div class="form-group">
				<label class="col-sm-3 control-label">姓名</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
						 name="staffFormMap.name" value="${staff.name}" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">工号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
						 name="staffFormMap.job_number" value="${staff.job_number}" readonly>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">档案号</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
					 name="recordFormMap.file_number" value="${record_File_number}" readonly>
				</div>
			</div>
				<div class="form-group">
				<label class="col-sm-3 control-label">民族</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
						placeholder="请输入民族" name="recordFormMap.nation">
				</div>
			</div>
			
			
			<div class="form-group">
				<label class="col-sm-3 control-label">婚否</label>
				<div class="col-sm-9">
					<select style="width: 15%;" class="form-control" id="salesman"
						name="recordFormMap.marital_status">
						<option value="">请选择</option>
						<option value="0">未婚</option>
						<option value="1">已婚</option>
					</select>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">学历</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
						placeholder="请输入学历" name="recordFormMap.education">
				</div>
			</div>
			
				<c:if test="${staff.state==2}">
				<div class="form-group">
					<label class="col-sm-3 control-label">离厂日期</label>
					<div class="col-sm-9">
						<input type="text" class="form-control " required id="one"
							placeholder="请输入离厂日期" name="recordFormMap.factory_date">
					</div>
				</div>
			</c:if>	
			<div class="form-group">
				<label class="col-sm-3 control-label">签订合同时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required id="two"
						placeholder="请输入签订合同时间" name="recordFormMap.contract_date">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">合同到期时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required id="three"
						placeholder="请输入合同到期时间" name="recordFormMap.contract_expiration">
				</div>
			</div>
			
			
			<div class="form-group">
				<label class="col-sm-3 control-label">紧急联系电话</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required
						placeholder="请输入紧急联系电话" name="recordFormMap.emergency_telephone">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">续签时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required id="four"
						placeholder="请输入续签时间" name="recordFormMap.renewal_date">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-3 control-label">返聘时间</label>
				<div class="col-sm-9">
					<input type="text" class="form-control " required id="five"
						placeholder="请输入返聘时间" name="recordFormMap.rehelloring_date">
				</div>
			</div>

				<div class="form-group">
				<label class="col-sm-3 control-label">商保</label>
				<div class="col-sm-9">
					<select style="width: 15%;" class="form-control" id="salesman"
						name="recordFormMap.business_insurance">
						<option value="">请选择</option>
						<option value="0">否</option>
						<option value="1">是</option>

					</select>
				</div>
			</div>
			
		</div>
		</div>
				<div class="line line-dashed line-lg pull-in"></div>
			</div>
		<footer class="panel-footer text-right bg-light lter">
		<button type="submit" class="btn btn-success btn-s-xs">新增</button>
		</footer> </section>
	</form>
	
	<script type="text/javascript" src="${ctx}/js/jedate/jedate.js"></script>
	<script type="text/javascript">
	
	jeDate({
		dateCell : "#two",
		format : "YYYY-MM-DD hh:mm:ss",
		isinitVal : false,
		isTime : true,
		isClear : false,
		minDate : "2014-09-19 00:00:00"
	})
	jeDate({
		dateCell : "#three",
		format : "YYYY-MM-DD hh:mm:ss",
		isinitVal : false,
		isTime : true,
		isClear : false,
		minDate : "2014-09-19 00:00:00"
	})
	jeDate({
		dateCell : "#four",
		format : "YYYY-MM-DD hh:mm:ss",
		isinitVal : false,
		isTime : true,
		isClear : false,
		minDate : "2014-09-19 00:00:00"
	})
	jeDate({
		dateCell : "#five",
		format : "YYYY-MM-DD hh:mm:ss",
		isinitVal : false,
		isTime : true,
		isClear : false,
		minDate : "2014-09-19 00:00:00"
	})
		jeDate({
			dateCell : "#one",
			format : "YYYY-MM-DD hh:mm:ss",
			isinitVal : false,
			isTime : true,
			isClear : false,
			minDate : "2014-09-19 00:00:00"
		})


		
	</script>
</body>
</html>